import { useContext } from "react"
import { ThemeContext } from "../utils/ThemeContext"

export default function UseContextCom() {
const theme=useContext(ThemeContext);
  return (
    <div>
      <p>子组件的当前主题：{theme}</p>
    </div>
  )
}